"use strict";

const multiConfig = require("./multi.conf");

module.exports = {
  dev: {
    assetsSubDirectory: multiConfig.process.assetsSubDirectory,
    assetsPublicPath: multiConfig.process.assetsPublicPath,
    proxyTable: null,

    host: multiConfig.process.host,
    port: multiConfig.process.port,
    autoOpenBrowser: true,
    notifyOnErrors: true,

    devtool: "source-map"
  },

  build: {
    index: multiConfig.process.index,

    assetsRoot: multiConfig.process.assetsRoot,
    assetsSubDirectory: multiConfig.process.assetsSubDirectory,
    assetsPublicPath: multiConfig.process.assetsPublicPath,

    productionSourceMap: true,
    devtool: "source-map",

    productionGzip: false,
    productionGzipExtensions: ["js", "css"],

    bundleAnalyzerReport: process.env.npm_config_report
  }
};
